package com.zzyk.main.service;

import com.zzyk.main.model.pojo.DeviceUserate;
import com.zzyk.main.model.vo.KeyValueTwo;

import java.util.List;
import java.util.Map;

public interface DeviceUserateService{


    int insertSelective(DeviceUserate record);



    /**
     * 根据设备ID查询设备使用率 、默认查询7天
     * @param id
     * @return
     */
    List<DeviceUserate> findDeviceUserateBuDeviceId(Integer id,String beginTime,String endTime,Integer type);

    List<DeviceUserate> getProductionReport(String dateTime, Integer enterprise, Integer[] deviceList);

    List<KeyValueTwo> getDeviceTypeUtilizationRate(String dateTime, Integer enterprise, Integer[] deviceList);

    List<Map<Object,Object>> getAnnualUtilizationRate(String year, Integer enterprise, Integer[] deviceList);
}
